package com.djq.hhc;

import com.djq.hhc.properties.MailProperties;
import com.djq.hhc.template.MailTemplate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dadd7
 * @Date: 2023/02/26/下午 2:57
 * @Description:
 */

@EnableConfigurationProperties({
        MailProperties.class
})
public class HhcAutoConfiguration {

    @Bean
    public MailTemplate mailTemplate (MailProperties mailProperties) {
        return new MailTemplate(mailProperties);
    }
}
